package sunyu.pojo.shiro;

import java.io.Serializable;
import java.util.Set;

/**
 * @author 孙宇
 */
public class Principal implements Serializable {

    private String id;//一般存放用户的id
    private String login_name;//登录名称

    private Set<String> roles;//角色Code集合
    private Set<String> permissions;//许可集合

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getLogin_name() {
        return login_name;
    }

    public void setLogin_name(String login_name) {
        this.login_name = login_name;
    }

    public Set<String> getRoles() {
        return roles;
    }

    public void setRoles(Set<String> roles) {
        this.roles = roles;
    }

    public Set<String> getPermissions() {
        return permissions;
    }

    public void setPermissions(Set<String> permissions) {
        this.permissions = permissions;
    }
}
